#CC=gcc
CC=arm-none-linux-gnueabi-gcc
AFLAGS=-Wall -c -g
LDFLAGS= -lpthread
OBJS=main.o pthread_data_collection.o pthread_insert_linklist.o pthread_shm_refresh.o pthread_M0_ctrl.o pthread_A9_ctrl.o
abc :$(OBJS)
	$(CC) -o $@ $^ $(LDFLAGS)
	$(OBJS):%.o:%.c
	$(CC) $(AFLAGS) $< -o $@

.PHONY:clean
clean:
	rm *.o abc
